package main

import (
	"log"
	"server_cluster/common/logger"
	"server_cluster/logic/game_config"
	"server_cluster/logic/sharemem"
)

func main() {
	game_config.InitConfig()

	logger.InitLogger("test", game_config.GetConfig().LogLevel)
	defer logger.CloseLogger()
	shmid := sharemem.GetShm()
	if shmid <= 0 {
		log.Fatal("get myshm fail.")
		return
	}
	sharemem.InitHeap()
	sharemem.InitUserMap()
	user, _ := sharemem.GetUserMap()[4442]
	if user == nil {
		return
	}
	user.Shm_user.Id.OldVal = 0
}
